import type { TasteDTO } from "../taste/types"

// 查询参数数据
interface QueryParams {
  pageNum: number,
  pageSize: number,
  dishName?: string,
  category?: string
}

// 商品列表数据
interface DishDTO {
  dishId: number,
  dishName: string,
  dishPrice: number,
  dishType: '单品' | '套餐',
  category: string,
  picture: string,
  dishStatus: '上架' | '下架'
  tasteOptions: TasteDTO[]
}

// 商品表单数据
interface RuleForm {
  dishId?: number | null,// 编辑时需要，新增时不需要
  dishName: string,
  dishPrice: number,
  dishType: '单品' | '套餐',
  category: string,
  picture: string,
  dishStatus: '上架' | '下架'
  flavor?: string
  intro?: string
  tasteOptions?: TasteDTO[]
}

export type { QueryParams, DishDTO, RuleForm }